﻿
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake)

set(GUIDE_ENTITY_H_FILE ${CMAKE_CURRENT_LIST_DIR}/cmake/entity.h.in)
set(GUIDE_ENTITY_CPP_FILE ${CMAKE_CURRENT_LIST_DIR}/cmake/entity.cpp.in)
set(GUIDE_MAIN_CPP_FILE ${CMAKE_CURRENT_LIST_DIR}/cmake/main.cpp.in)

if(NOT EXISTS ${GUIDE_ENTITY_H_FILE} OR NOT EXISTS ${GUIDE_ENTITY_CPP_FILE})
    message(FATAL_ERROR "guide entity 模板文件不存在!")
endif()

include(BeginnerGuideMacroUtils)

include_directories(${CMAKE_CURRENT_LIST_DIR}/include)
# 第四章节
add_subdirectory(chapter4)
add_subdirectory(chapter5)
